package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class SimpleUserInfo implements Parcelable {

    private String id;
    private String name;
    private String avatar;
    private String password;
    private String code;
    private String username;
    private String box_openid;

    private String nickname;
    private String logintime;

    public String getLogintime() {
        return logintime;
    }

    public void setLogintime(String logintime) {
        this.logintime = logintime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getBox_openid() {
        return box_openid;
    }

    public void setBox_openid(String box_openid) {
        this.box_openid = box_openid;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.avatar);
        dest.writeString(this.password);
        dest.writeString(this.box_openid);
        dest.writeString(this.code);
        dest.writeString(this.username);
        dest.writeString(this.nickname);
        dest.writeString(this.logintime);
    }

    public SimpleUserInfo() {
    }

    protected SimpleUserInfo(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.avatar = in.readString();
        this.password = in.readString();
        this.box_openid = in.readString();
        this.code = in.readString();
        this.username = in.readString();
        this.nickname = in.readString();
        this.logintime = in.readString();
    }

    public static final Creator<SimpleUserInfo> CREATOR = new Creator<SimpleUserInfo>() {
        @Override
        public SimpleUserInfo createFromParcel(Parcel source) {
            return new SimpleUserInfo(source);
        }

        @Override
        public SimpleUserInfo[] newArray(int size) {
            return new SimpleUserInfo[size];
        }
    };

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
